let youngest = people[0] ? people[0].age : Infinity;
let totalSalary = 0;
for (const p of people) {
    if (p.age < youngest) {
        youngest = p.age;
    }
    totalSalary = + p.salary;
}

return { "youngest": youngest, "totalSalary": totalSalary }
/********************************************************** */
function totalSalary() {
    let totalSalary2 = 0;
    for (const p of people) {
        totalSalary2 = + p.salary;
    }
}

function youngest() {
    let youngest2 = people[0] ? people[0].age : Infinity;
    for (const p of people) {
        if (p.age < youngest2) {
            youngest2 = p.age;
        }
    }
}

return { "youngest": youngest(), "totalSalary": totalSalary() }
/********************************************************** */
function totalSalary() {
    return people.reduce((total, p) => { total += p.salary, 0 })
}

function youngest() {
    return Math.min(...people.map(p => p.age));
}